/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import entities.Shift;
import java.util.Vector;
import javax.swing.AbstractListModel;

/**
 *
 * @author MinhDuc
 */
public class ShiftDetailListModel extends AbstractListModel<Shift> {

    Vector<Shift> data;

    public ShiftDetailListModel() {
    }

    public ShiftDetailListModel(Vector<Shift> data) {
        this.data = data;
    }

    @Override
    public int getSize() {
        return data.size();
    }

    @Override
    public Shift getElementAt(int index) {
        return data.get(index);
    }
}
